package com.cloudpark.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/activity")
public class ActivityController extends BaseController {

    private static final Logger log = Logger.getLogger(ActivityController.class);

    @RequestMapping(value = "/seller", method = RequestMethod.GET)
    public ModelAndView seller(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("activity/seller.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/purchaseCoupon", method = RequestMethod.GET)
    public ModelAndView purchaseCoupon(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("activity/purchaseCoupon.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/setCoupon", method = RequestMethod.GET)
    public ModelAndView setCoupon(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("activity/setCoupon.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/queryCoupon", method = RequestMethod.GET)
    public ModelAndView queryCoupon(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("activity/queryCoupon.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/integral", method = RequestMethod.GET)
    public ModelAndView integral(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("activity/integral.jsp");
        initMenu(request, response);
        return mv;
    }
}
